How can I add a Google search box to my website? [migrated]

Posted by wahle509 on Programmers See other posts from Programmers or by wahle509
Published on 2012-12-11T15:19:45Z Indexed on 2012/12/11 17:22 UTC
Read the original article Hit count: 236

Filed under:
|
|
|

I am trying to add a Google search box to my own website. I would like it to search Google itself, not my site. There was some code I had that use to work, but no longer does:

<form method="get" action="https://www.google.com/search">
<input type="text" name="g" size="31" value="">
</form>

When I try making a search, it just directs to the Google homepage. Well, actually it directs here: https://www.google.com/webhp

Does anyone have a different solution? What am I doing wrong?

© Programmers or respective owner

Related posts about websites

Related posts about google